package com.huage_04.lesson_03.Demo;

/*
    测试类
 */
public class TestDemo {
    public static void main(String[] args) {
        //创建乒乓球员进行测试
        PingPangPlayer pPlayer = new PingPangPlayer("乒乓球员",25);
        System.out.println(pPlayer.getName()+","+pPlayer.getAge());
        pPlayer.play();
        pPlayer.sayEnglish();
        System.out.println("---------");

        //创建乒乓球教练进行测试
        PingPangTeacher pTeacher = new PingPangTeacher("乒乓球教练",35);
        System.out.println(pTeacher.getName()+","+pTeacher.getAge());
        pTeacher.teach();
        pTeacher.sayEnglish();
        System.out.println("---------");

        //创建蓝球员进行测试
        BaseketballPlayer bPlayer = new BaseketballPlayer("篮球球员",26);
        System.out.println(bPlayer.getName()+","+bPlayer.getAge());
        bPlayer.play();
        bPlayer.sayEnglish();
        System.out.println("---------");

        //创建蓝球教练进行测试
        BaseketballTeacher bTeacher = new BaseketballTeacher("篮球教练",36);
        System.out.println(bTeacher.getName()+","+bTeacher.getAge());
        bTeacher.teach();
        bTeacher.sayEnglish();
    }
}
